import 'package:car_map/page/res/gaps.dart';
import 'package:car_map/page/res/styles.dart';
import 'package:flutter/material.dart';

///设备详情item
class ItemDeviceDetails extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: EdgeInsets.only(top: 10.0,bottom: 10.0),
      decoration: BoxDecoration(
          border:
              Border(bottom: BorderSide(color: Colors.black12, width: 0.5))),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.directions_car,
                color: Colors.blue,
              ),
              Text(
                '云A86976 (2#) [3891180496]',
                style: TextStyles.textSize16,
              ),
            ],
          ),
          Gaps.vGap10,
          Text(
            '分组:都香高速A4合同段车辆',
            style: TextStyles.textGray14,
          ),
          Gaps.vGap10,
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text(
                'sim:1440319329185',
                style: TextStyles.textGray14,
              ),
              Text(
                '服务器时间:2019-11-06 08:56:25',
                style: TextStyles.textGray14,
              ),
            ],
          ),
          Gaps.vGap10,
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text(
                '设备时间:2019-11-06 08:53:15',
                style: TextStyles.textGray14,
              ),
              Text(
                '状态:停车超时（5时54分）搅拌',
                style: TextStyles.textGray14,
              ),
            ],
          ),
          Gaps.vGap10,
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text(
                '速度:70.6',
                style: TextStyles.textGray14,
              ),
              Text(
                '方向:北',
                style: TextStyles.textGray14,
              ),
            ],
          ),
          Gaps.vGap10,
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text(
                '当日里程:70.6',
                style: TextStyles.textGray14,
              ),
              Text(
                '总里程:10000',
                style: TextStyles.textGray14,
              ),
            ],
          ),
          Gaps.vGap10,
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text(
                '温度:15.7',
                style: TextStyles.textGray14,
              ),
              Text(
                '油量:9.0',
                style: TextStyles.textGray14,
              ),
            ],
          ),
          Gaps.vGap10,
          Text(
            '地址:陕西省西安市高新区科技四路',
            style: TextStyles.textGray14,
          ),

        ],
      ),
    );
  }
}
